import Course from './Course'
import Cart from './Cart'
import Observer from '../../utils/Observer'
export default class ShoppingCart {
    constructor() {
        this.oList = document.getElementsByClassName('J_list')[0];
        this.oCatr = document.getElementsByClassName('J_cart')[0]
        this.observer = new Observer();
    }
    init() {
        new Course(this.oList, this.observer);
        new Cart(this.oCatr, this.observer)
    }
}